import os
from urllib import request

url = 'https://www.baidu.com'
file = request.urlopen(url)
data = file.read()
newFile = open('./1.html','wb')
newFile.write(data)
newFile.close()
